package com.feng.chat.service;

import com.feng.chat.dto.Result;
import com.feng.chat.entity.TalkRecordsFile;
import com.baomidou.mybatisplus.extension.service.IService;
import com.feng.chat.vo.EmoticonVO;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 * 用户聊天记录_文件消息表 服务类
 * </p>
 *
 * @author dyf
 * @since 2022-05-31
 */
public interface ITalkRecordsFileService extends IService<TalkRecordsFile> {
    //发送表情消息
    public Result messageEmoticon(Integer uid, EmoticonVO emotionVO);

    //发送图片消息
    public Result messageImage(Integer uid, Integer talk_type, Integer receiver_id, MultipartFile image);

    //发送文件信息
    public Result messageFile(Integer uid,Integer receiver_id,Integer talk_type,String upload_id);

    //文件下载
    public void fileDownload(HttpServletResponse response,Integer cr_id);
}
